﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<link rel="stylesheet" type="text/css" href="${staticPath}/base/css/orderList.css">
<div class="table-orderSearch1">
    <form id="form1" method="get" action="${basePath}/t_menu_info/list">
        <input class="btn btn-1 w-100 fr" type="button" onclick="window.location='${basePath}/t_menu_info/add?menu_id=0'"
               value="添加">
        <input type="hidden" name="page_index" id="page_index" value="1">
        <input type="hidden" name="page_size" id="page_size" value="${defaultPageSize }">
    </form>
</div>


<div id="data-result">
    <table class="table-orderList">
        <thead>
        <%--<td>自增主键</td>--%>
        <td>菜单编号</td>
        <td>一级菜单名称</td>
        <td>二级菜单名称</td>
        <td>菜单地址</td>
        <td>排序</td>
        <td>状态</td>
        <td>添加时间</td>
        <td>修改时间</td>
        <td>备注</td>
        <td>操作</td>
        </thead>
        <tbody>
        ${data}
        </tbody>
    </table>

</div>
<div class='clear'></div>
<script>
    function del(id){
        if(!window.confirm("是否确认操作？")){return;}
        var domainsite="${basePath}";
        $.post(domainsite+ "/ajax/t_menu_info/del", {menu_id: id}, function (resp) {
            if (resp.code == "1") {
                window.location.reload();
            } else {
                alert(resp.msg);
            }
        });
    }
</script>
<%--<script type="text/javascript" src="${staticPath}/js/t_menu_info.js"></script>--%>
